<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>模板赋值</title>
</head>
<body>
{// 注释: 访问变量}
<p>{$sitename}</p>
<p>{$name}: {$email}</p>

{//数组}
<p>{$mobile['brand']}{$mobile['model']}: {$mobile.price}</p>

{// 对象}
<p>{$stu->course}: {$stu->grade}</p>

{// 预定义变量}
<p>{$_GET['name']}</p>
<p>{$Think.get.name}</p>
<p>{$_SERVER['PHP_SELF']}</p>
</body>
</html>